package com.example.michong.controller;

import com.example.michong.result.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@Api("验证相关")
@RequestMapping("/Verify")
public class VerifyHashV {

    @GetMapping("/HashV")
    @ApiOperation("hashMap ,每次values 的顺序是否相同")
    public JsonResult<List<String>> hashMapV(){
        Map<String,String> map =  new HashMap<>(1);
        map.put("one","1");
        map.put("two","2");
        map.put("three","3");
        map.put("fore","4");
        map.put("five","5");
        map.put("six", "6");
        List<String> value = new ArrayList<>(map.values());

        return new JsonResult<>(value);
    }

}
